package com.bourne.service;

import com.bourne.mapper.UserMapper;
import com.bourne.model.UserDO;
import com.bourne.request.UserLoginRequest;
import com.bourne.request.UserRegisterRequest;
import com.bourne.util.JsonData;
import com.bourne.vo.UserVO;

import javax.servlet.http.HttpServletRequest;

/**
 * @PROJECT_NAME: xdclass-1024-shop
 * @DATE: 2021/3/28 15:39
 */
public interface UserService extends BaseCoreService<UserMapper, UserDO> {

    /*
     * 用户注册
     * @param registerRequest
     * @return
     */
    JsonData register(UserRegisterRequest registerRequest);



    /**
     * 用户登陆路
     * @param loginRequest
     * @param request
     */
    JsonData login(UserLoginRequest loginRequest, HttpServletRequest request) throws Exception;


    /**
     * 查询用户详情
     * @return
     */
    UserVO findUserDetail(Long id);

    Object testSql(UserDO userDO);

}
